package HomeWork3;

public class Fish extends Animaal implements Swim{
    Fish(String name,int age,String color){
        super(name, age, color);
    }
    public void eat(){
        System.out.println("正在吃鱼食的"+name+"是"+color+"色"+age+"岁的小鱼");
    }
    public void swim(){
        System.out.println("正在游泳的"+name+"是"+color+"色"+age+"岁的小鱼");
    }
}
